package com.yanxu.chapter1;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author 折戟沉沙铁未销
 * @version V1.0
 * @date 2024/12/28-2024
 * @Description: 测试一个简单的死循环也会导致cpu 飙高吗？？
 */
@RestController
@RequestMapping("/testloop")
public class LoopController {

    @GetMapping("/caculate")
    public void testLoop(){
        while (true){
            int a=1+20;
        }
    }
}